package com.hospital.hospitalrelay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 接诊表
 * </p>
 *
 * @author 闫腾腾
 * @since 2020-10-21
 */
@Data
@Accessors(chain = true)
public class Medicalrecord extends Model<Medicalrecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 患者用户
     */
    private Integer sickpersonId;

    /**
     * 就诊状态
     */
    private Integer medicalrecordstatusId;

    /**
     * 接诊类型
     */
    private Integer medicalrecordtypeId;

    /**
     * 医生
     */
    private Integer doctorId;

    /**
     * 创建时间
     */
    private Date createtime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
